<?php

namespace Yj\Constants;

use App\Constants\SignTask;
use Hyperf\HttpServer\Annotation\Controller;
use Yj\Apidog\Annotation\ApiController;
use Yj\Apidog\Annotation\GetApi;
use Yj\Constants\Annotation\Message;
use Yj\Constants\Annotation\Type;

/**
 * @ApiController(prefix="test/contants")
 */
class TestController
{
    /**
     * @GetApi(path="run")
     */
    public function run(){
        $this->getKeys();
        $this->getConstants();
        $this->getValue(SignTask::SHARE,Message::class);
        $this->getValue(SignTask::SHARE,Type::class);
    }

    public function getKeys(){
        dump(SignTask::getKeys());
    }

    public function getConstants(){
        dump(SignTask::getConstants());
    }

    public function getValue($value,$type){
        dump(SignTask::getValue($value,$type));
    }
}